#include "stdio.h"
#include "YTRecorderAmr.h"
#include "YTRecorderAmrImpl.h"

YTRecorderAmr YTRecorderAmr::mInstance;

YTRecorderAmr &YTRecorderAmr::Instance()
{
	return mInstance;
}

YTRecorderAmr::YTRecorderAmr()
{
	mRecorderAmrImpl = new YTRecorderAmrImpl();
}


YTRecorderAmr::~YTRecorderAmr()
{
	if(mRecorderAmrImpl)
		delete mRecorderAmrImpl;
	mRecorderAmrImpl = NULL;

}


void YTRecorderAmr::Init()
{
	mRecorderAmrImpl->Init();	
}

int YTRecorderAmr::Start()
{
	mRecorderAmrImpl->Start();
}

int YTRecorderAmr::Resume()
{
	mRecorderAmrImpl->Resume();
}

int YTRecorderAmr::Pause()
{
	mRecorderAmrImpl->Pause();
}

int YTRecorderAmr::Stop()
{
	mRecorderAmrImpl->Stop();
}

int YTRecorderAmr::SetEventListener(IOnEvent* _pEvent)
{
	mRecorderAmrImpl->SetEventListener(_pEvent);
}




